<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<!-- Website tracking -->
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-54780113-1', 'auto');
  ga('send', 'pageview');

</script>
<!-- Website tracking -->

<link href="css/header.css" rel="stylesheet" type="text/css">
<link href="css/navigation.css" rel="stylesheet" type="text/css" />
<link href="css/template.css" rel="stylesheet" type="text/css" />

<style type="text/css">
body {
	background-image: url(images/wood2.jpg);
	background-repeat: repeat-x;
	margin: 0px;
	background-position: left top;
	background-attachment: fixed;
	background-color: #000000;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}
</style>
<link href="css/create_product_message.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="page_container">

<?php include "header.php" ?>

<?php include "navigation.php" ?>

<div id="contact_us_container">

<h1>Have a product related question?</h1>

<?php

include "connect.php";

$product_id = $_POST['product_id'];

$product_query = "SELECT * FROM saddles WHERE product_id = '$product_id'";
$product_result = mysql_query($product_query);
while($product_row = mysql_fetch_array($product_result))

{
	
$product_row_id 			= $product_row['id'];
$product_name 			= $product_row['product_name'];
$product_cost 			= $product_row['product_cost'];
$product_description	= $product_row['product_description'];

}

?>

<form action="process_product_message.php" method="post" name="product_message">

<input name="product_id" type="text" id="product_id" value="<?php echo $_POST['product_id'] ?>" readonly="readonly" />

<input name="product_name" type="text" id="product_name" value="<?php echo $product_name ?>" readonly="readonly" />

<input id="contact_name" name="customer_name" type="text" placeholder="Your name" />

<input id="contact_email" name="customer_email" type="text" placeholder="Your email" />

<input id="contact_number" name="customer_number" type="text" placeholder="Your number" />

<textarea id="contact_message" name="contact_message" cols="" rows="" placeholder="Your message"></textarea>

<img src="images/saddles/<?php echo $product_row_id ?>_1.jpg" width="310" height="310" />

<input name="submit_button" type="submit" class="submit_button" value="Send" />

<input class="checkbox" name="send_customer_email" type="checkbox" value="Yes" checked="checked" />
<label class="checkbox_text">Send copy to my email address</label>

</form>

</div>
<!--contact_us_container-->

</div> 
<!--page_container-->

<?php include "footer.php" ?>

</body>
</html>